package com.guchenbo.scala.c5

import scala.collection.mutable

/**
 * @author guchenbo
 * @date 2022/3/17
 */
object SetDemo {

  def main(args: Array[String]): Unit = {
    val set = Set(1, 2, 3, 3)

    println(set)
    println(set(1))

    println(set + 4 + 5)

    val set2 = mutable.Set(1, 2)
    set2.add(4)
  }
}
